package com.zbkj.client.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import java.util.Map;

@FeignClient(name = "python-agent", url = "http://112.74.98.173:8000")
public interface PythonAgentClient {
    @GetMapping("/api/v1/agents/")
    Object getAgentList();

    @PostMapping("/api/v1/sessions/")
    Object createSession(@RequestBody Map<String, String> params);
} 